﻿@model Website.Models.Styling.MenuItem
@{
    var current = this.Session["CurrentSubMenuSelection"] as string;
}

<a href="@Url.Action(this.Model.ActionName, this.Model.ControllerName)" class="subMenuItem">
    @if (current.Equals(this.Model.CurrentMenuSelectionName))
    {
        <div class="selectedPage"></div>
        <img src="@Url.Content("~/Content/ButtonIcons/" + this.Model.ImageName + "_blue.png")" alt="link"/>
        <br />
        <u>@Model.Title.ToUpper()</u>
    }
    else
    {
        <img src="@Url.Content("~/Content/ButtonIcons/" + this.Model.ImageName + ".png")" alt="link"/>
        <br />
        @Html.Raw(this.Model.Title.ToUpper())
    }
</a>